const add = (x, y) => x + y;

const promise = new Promise((resolve) => {
    setTimeout(() => {
        console.log('定时器执行完了~');
        resolve();
    }, 2000);
});

console.log(promise);
